﻿<wnd:VecDrawDialog x:Class="WickedFlame.VecDraw.Dialog.NewImageDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wnd="clr-namespace:WickedFlame.VecDraw.Base.Controls;assembly=VecDraw.Base"
    Title="New" Height="174" Width="304" WindowStyle="None" Loaded="Window_Loaded" Foreground="WhiteSmoke">

    <Window.Resources>

        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/ControlTemplates.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </Window.Resources>
    
    <!--<Grid Background="LightGray">-->
    <Grid>
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Offset="0.0" Color="#484848" />
                <GradientStop Offset="1.0" Color="#282828" />
            </LinearGradientBrush>
        </Grid.Background>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="40"/>
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        
        <TextBlock Grid.Column="0" Margin="15,15,0,0" VerticalAlignment="Center"  Text="Width"/>
        <TextBlock Grid.Row="1"  Margin="15,0,0,0" VerticalAlignment="Center" Text="Height"/>
        
        <TextBox Grid.Column="1" Name="txtWidth" Text="600" Margin="30,15,5,5" GotFocus="TextBox_GotFocus" MouseLeftButtonUp="TextBox_MouseLeftButtonUp" />
        <TextBox Grid.Column="1" Grid.Row="1" Name="txtHeight" Text="400" GotFocus="TextBox_GotFocus" Margin="30,5,5,5" MouseLeftButtonUp="TextBox_MouseLeftButtonUp"/>

        <TextBlock Grid.Column="2" Margin="2,15,0,0" VerticalAlignment="Center"  Text="Pixel"/>
        <TextBlock Grid.Column="2" Grid.Row="1"  Margin="2,0,0,0" VerticalAlignment="Center" Text="Pixel"/>

        <StackPanel Grid.Row="3" Grid.ColumnSpan="4" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button IsDefault="True" Click="btnOK_Click" Margin="3">OK</Button>
            <Button IsCancel="True" Click="btnCancle_Click" Margin="3">Cancle</Button>
        </StackPanel>
    </Grid>
</wnd:VecDrawDialog>
